package crmdna.group;

import com.googlecode.objectify.annotation.Cache;
import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.Index;

import crmdna.group.Group.GroupProp;

@Entity
@Cache
public class GroupEntity {
	@Id
	long groupId;
	@Index
	public String name;
	String displayName;

	// paypal details
	String paypalApiLogin;
	String paypalApiPwd;
	String paypalApiSecret;
	boolean paypalApiDisable = false;

	// mandrill
	String mandrillApiKey;
	String mandrillFromEmail;
	String mandrillFromName;
	boolean mandrillDisableEmail = false;

	String registrationConfirmationEmailTemplate;
	String registrationReminderEmailTemplate;

	public GroupProp toProp() {
		GroupProp prop = new GroupProp();
		prop.groupId = groupId;
		prop.name = name;
		prop.displayName = displayName;

		return prop;
	}
}
